﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Model.ModelForJD
{
    /// <summary>
    /// 统一下单商品
    /// </summary>
    public class ReturnSubmitOrderParamForJD
    {
        /// <summary>
        /// 返回标识
        /// </summary>
        public bool success { get; set; }
        /// <summary>
        /// 返回描述
        /// </summary>
        public string resultMessage { get; set; }
        /// <summary>
        /// 返回编码
        /// </summary>
        public string resultCode { get; set; }
        /// <summary>
        /// 下单接口返回数据
        /// </summary>
        public ReturnSubmitOrderParamSkuForJD result;
    }

    public class ReturnSubmitOrderParamSkuForJD
    {
        /// <summary>
        /// 京东订单号
        /// </summary>
        public string jdOrderId { get; set; }
        /// <summary>
        /// 总运费
        /// </summary>
        public string freight { get; set; }
        /// <summary>
        /// 商品总价格
        /// </summary>
        public string orderPrice { get; set; }
        /// <summary>
        /// 订单裸价
        /// </summary>
        public string orderNakedPrice { get; set; }
        /// <summary>
        /// 订单税额
        /// </summary>
        public string orderTaxPrice { get; set; }
        /// <summary>
        /// 订单商品详情集合
        /// </summary>
        public List<ReturnSubmitOrderParamDetailsForJD> sku { get; set; }
    }


    /// <summary>
    /// 订单商品详情
    /// </summary>
    public class ReturnSubmitOrderParamDetailsForJD
    {
        /// <summary>
        /// 商品编号
        /// </summary>
        public string skuId { get; set; }
        /// <summary>
        /// 商品数量
        /// </summary>
        public int num { get; set; }
        /// <summary>
        /// 类别
        /// </summary>
        public int category { get; set; }
        /// <summary>
        /// 价格
        /// </summary>
        public string price { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        public string name { get; set; }
        /// <summary>
        /// 纳税比例
        /// </summary>
        public int tax { get; set; }
        /// <summary>
        /// 纳税价格
        /// </summary>
        public string taxPrice { get; set; }
        /// <summary>
        /// 裸价
        /// </summary>
        public string nakedPrice { get; set; }
        /// <summary>
        /// 类型0普通、1附件、2赠品
        /// </summary>
        public string type { get; set; }
        /// <summary>
        /// 主商品skuid
        /// </summary>
        public string old { get; set; }
    }
}
